package com.lightkits.wms.domain.deliveryorder.service;

import com.lightkits.common.db.entity.BdDeliveryOrderBase;
import com.lightkits.common.db.entity.event.BdEventRecord;
import com.lightkits.framework.common.model.CheckResult;
import com.lightkits.wms.dto.deliveryorder.model.DeliveryOrderDTO;

/**
 * CreateDeliveryOrderDomain
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/2/25 14:46
 */

public interface CreateDeliveryOrderDomain {
    /**
     * 创建发货单
     *
     * @param dto 发货单参数
     * @return
     */
    CheckResult<BdDeliveryOrderBase> createDeliveryOrders(DeliveryOrderDTO dto);


    /**
     * 事件快照的创建
     *
     * @param keyValue   事件关键值
     * @param objectId   事件对象ID
     * @param recordType 事件记录类型
     * @return
     **/
    BdEventRecord createEventRecord(String recordType, String keyValue, Long objectId);

}
